﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ViCode_LeVi.Controls
{
    /// <summary>
    /// Interaction logic for VMResultOfStep_Child.xaml
    /// </summary>
    public partial class VMResultOfStep_Child : UserControl
    {
        public VMResultOfStep_Child()
        {
            InitializeComponent();
        }
        public Orientation OrientationOfChild
        {
            get { return StackPanel_Child.Orientation; }
            set { StackPanel_Child.Orientation = value; }
        }

        public bool CheckAll
        {
            get { return false; }
            set 
            {
                BindingOperations.ClearBinding(RadioButton_Bad, RadioButton.IsCheckedProperty);
                BindingOperations.ClearBinding(RadioButton_Good, RadioButton.IsCheckedProperty);
                BindingOperations.ClearBinding(RadioButton_Normal, RadioButton.IsCheckedProperty);
                RadioButton_Bad.IsChecked = RadioButton_Good.IsChecked = RadioButton_Normal.IsChecked = true; 
            }
        }
    }
}
